n=eval(input())
sum=1
for i in range(0,n-1):
    sum=(sum+1)*2
print(sum)